#pragma once

namespace soft_renderer
{
	class Vector3;
	class Vector2
	{
	private:
		double data[2];

	public:
		Vector2(double x = 0, double y = 0);

		void set(double x, double y);
		void setX(double x);
		void setY(double y);
		void copy(const Vector2& v);
		void copy(const Vector3& v);
		double x();
		double y();
		double cross(const Vector2& v);
	};
}
